package _17_Inheritance.cars;

public class Jeep extends Car
{
	boolean hasElevatedExhoustPipe;
	protected String type = "Jeep";
	
	Jeep()
	{
		super(150);
	}
	
	void switch4x4()
	{
		System.out.println("4x4 is on!");
		System.out.println(type);
		System.out.println(super.type);
	}
	void driveOffRoad()
	{
		System.out.println("Driving offroad");
	}
	
	@ Override
	protected void startEngine()
	{
		System.out.println("Starting jeep engine!");
	}
	
	@Override
	public String toString() {
		
		return "Jeep model is: " + model + ", type is: " + type;
	}
}
